<html xsl:version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns="http://www.w3.org/TR/xhtml1/strict"
>
	<xsl:variable name="nodeCount">
		<xsl:value-of select="count(mock/tests/test)"/>
	</xsl:variable>
	<body>
		<applet>
			<xsl:attribute name="archive">
				<xsl:value-of select="mock/@archive" />
			</xsl:attribute>
			<xsl:attribute name="code">
				<xsl:value-of select="mock/@code" />
			</xsl:attribute>
			<xsl:attribute name="width">
				<xsl:value-of select="mock/@width" />
			</xsl:attribute>
			<xsl:attribute name="height">
				<xsl:value-of select="mock/@height" />
			</xsl:attribute>

			<xsl:for-each select="mock/parameters/parameter">
				<param>
					<xsl:attribute name="name">
						<xsl:value-of select="@name" />
					</xsl:attribute>
					<xsl:attribute name="value">
						<xsl:value-of select="@value" />
					</xsl:attribute>
				</param>
			</xsl:for-each>


			<param name="MOCK_TESTS">
				<xsl:attribute name="value">
					<xsl:for-each select="mock/tests/test">
						<xsl:value-of select="@title" />
						,
						<xsl:value-of select="@url" />

						<xsl:if test="$nodeCount &gt; 1">#</xsl:if>
					</xsl:for-each>
				</xsl:attribute>
			</param>
		</applet>
		<hr/>
		<xsl:for-each select="mock/tests/test">
			<a>
				<xsl:attribute name="href">
					<xsl:value-of select="@url" />
				</xsl:attribute>
				<xsl:value-of select="@title" />
			</a><br/>
		</xsl:for-each>
	</body>
</html>